def move_zeros(nums):
    #fast: current num, slow: number of non-zeros
    fast = slow = 0
    while fast < len(nums):
        if nums[fast]:
            nums[fast], nums[slow] = nums[slow], nums[fast]
            slow+=1
        fast+=1